const Sequelize = require('sequelize')
let db = require('../config/db')
let User = require('./user')
let Task = require('./task')

let Task_sign = db.define('task_sign',{
    id:{
        type: Sequelize.INTEGER,
        field: 'id',
        primaryKey:true,
        autoIncrement: true,
        comment: "主键，自增"
    },
    uid:{
      type:Sequelize.INTEGER
    },
    task_id:{
        type:Sequelize.INTEGER
    },
    sign_cash:{
     type:Sequelize.TEXT,
        comment:'金额'
    },
    sigin_id:{
        type: Sequelize.INTEGER
    },
    isDel:{
        type: Sequelize.INTEGER,
        defaultValue:0,
        comment:'状态，是否删除'
    }
},{
    freezeTableName:true,
    paranoid:true,
    timestamps:true
})


let task_sign = Task_sign.sync();
module.exports = Task_sign
